package com.nstar.googlemap.view.components
{

import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import mx.controls.Label;

public class MyInfoWindowSprite extends Sprite {

  public var bodyTextField:TextField;
  public var bodyTextFielda:TextField;
  public var bodyTextFieldb:TextField;  
   
  public function MyInfoWindowSprite() {
  	
    graphics.lineStyle(1, 0x406080);
    graphics.beginFill(0x80c0ff);
    graphics.drawRect(-6, 0, 10, 8);
    graphics.drawRect(-3, -14, 14, 12);
    graphics.drawRect(4, -34, 20, 18);
    graphics.drawRect(18, -60, 25, 24);
    graphics.drawRect(44, -140, 160, 100);
    graphics.endFill();

    var me:Sprite = this;
    this.addEventListener(MouseEvent.CLICK, function(event:MouseEvent):void {
          me.dispatchEvent(new Event("close")); 
    });
    
    bodyTextField = new TextField();
    bodyTextField.x =68;
    bodyTextField.autoSize = TextFieldAutoSize.CENTER;
    bodyTextField.y = -120;
    bodyTextField.textColor = 0x666666;
    bodyTextField.width = 15;
    this.addChild(bodyTextField);
    bodyTextField.selectable = false;
    
    bodyTextFielda = new TextField();
    bodyTextFielda.x =68;
    bodyTextFielda.autoSize = TextFieldAutoSize.CENTER;
    bodyTextFielda.y = -100;
    bodyTextFielda.textColor = 0x666666;
    bodyTextFielda.width = 15;
    this.addChild(bodyTextFielda);
    bodyTextFielda.selectable = false;
    
    bodyTextFieldb = new TextField();
    bodyTextFieldb.x =68;
    bodyTextFieldb.autoSize = TextFieldAutoSize.CENTER;
    bodyTextFieldb.y = -80;
    bodyTextFieldb.textColor = 0x666666;
    bodyTextFieldb.width = 15;
    this.addChild(bodyTextFieldb);
    bodyTextFieldb.selectable = false;
        
    cacheAsBitmap = true;
  }
 
}
 
}